// pages/login/components/box-input/box-input.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    title: String,
    type: String,
    key: String,
    isPassword: {
      type: Boolean,
      value: false,
    },
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    bindKeyInput: function (e) {
      let type = e.target.dataset.type;
      let value = e.detail.value;
      this.triggerEvent("ichange", { type, value });
    },
  },
});
